package com.zhangchao.day_book.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NoteExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NoteExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNoteNoIsNull() {
            addCriterion("note_no is null");
            return (Criteria) this;
        }

        public Criteria andNoteNoIsNotNull() {
            addCriterion("note_no is not null");
            return (Criteria) this;
        }

        public Criteria andNoteNoEqualTo(String value) {
            addCriterion("note_no =", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoNotEqualTo(String value) {
            addCriterion("note_no <>", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoGreaterThan(String value) {
            addCriterion("note_no >", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoGreaterThanOrEqualTo(String value) {
            addCriterion("note_no >=", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoLessThan(String value) {
            addCriterion("note_no <", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoLessThanOrEqualTo(String value) {
            addCriterion("note_no <=", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoLike(String value) {
            addCriterion("note_no like", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoNotLike(String value) {
            addCriterion("note_no not like", value, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoIn(List<String> values) {
            addCriterion("note_no in", values, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoNotIn(List<String> values) {
            addCriterion("note_no not in", values, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoBetween(String value1, String value2) {
            addCriterion("note_no between", value1, value2, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteNoNotBetween(String value1, String value2) {
            addCriterion("note_no not between", value1, value2, "noteNo");
            return (Criteria) this;
        }

        public Criteria andNoteContentIsNull() {
            addCriterion("note_content is null");
            return (Criteria) this;
        }

        public Criteria andNoteContentIsNotNull() {
            addCriterion("note_content is not null");
            return (Criteria) this;
        }

        public Criteria andNoteContentEqualTo(String value) {
            addCriterion("note_content =", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentNotEqualTo(String value) {
            addCriterion("note_content <>", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentGreaterThan(String value) {
            addCriterion("note_content >", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentGreaterThanOrEqualTo(String value) {
            addCriterion("note_content >=", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentLessThan(String value) {
            addCriterion("note_content <", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentLessThanOrEqualTo(String value) {
            addCriterion("note_content <=", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentLike(String value) {
            addCriterion("note_content like", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentNotLike(String value) {
            addCriterion("note_content not like", value, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentIn(List<String> values) {
            addCriterion("note_content in", values, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentNotIn(List<String> values) {
            addCriterion("note_content not in", values, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentBetween(String value1, String value2) {
            addCriterion("note_content between", value1, value2, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteContentNotBetween(String value1, String value2) {
            addCriterion("note_content not between", value1, value2, "noteContent");
            return (Criteria) this;
        }

        public Criteria andNoteGradeIsNull() {
            addCriterion("note_grade is null");
            return (Criteria) this;
        }

        public Criteria andNoteGradeIsNotNull() {
            addCriterion("note_grade is not null");
            return (Criteria) this;
        }

        public Criteria andNoteGradeEqualTo(String value) {
            addCriterion("note_grade =", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeNotEqualTo(String value) {
            addCriterion("note_grade <>", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeGreaterThan(String value) {
            addCriterion("note_grade >", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeGreaterThanOrEqualTo(String value) {
            addCriterion("note_grade >=", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeLessThan(String value) {
            addCriterion("note_grade <", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeLessThanOrEqualTo(String value) {
            addCriterion("note_grade <=", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeLike(String value) {
            addCriterion("note_grade like", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeNotLike(String value) {
            addCriterion("note_grade not like", value, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeIn(List<String> values) {
            addCriterion("note_grade in", values, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeNotIn(List<String> values) {
            addCriterion("note_grade not in", values, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeBetween(String value1, String value2) {
            addCriterion("note_grade between", value1, value2, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteGradeNotBetween(String value1, String value2) {
            addCriterion("note_grade not between", value1, value2, "noteGrade");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeIsNull() {
            addCriterion("note_remind_time is null");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeIsNotNull() {
            addCriterion("note_remind_time is not null");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeEqualTo(Date value) {
            addCriterion("note_remind_time =", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeNotEqualTo(Date value) {
            addCriterion("note_remind_time <>", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeGreaterThan(Date value) {
            addCriterion("note_remind_time >", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("note_remind_time >=", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeLessThan(Date value) {
            addCriterion("note_remind_time <", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeLessThanOrEqualTo(Date value) {
            addCriterion("note_remind_time <=", value, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeIn(List<Date> values) {
            addCriterion("note_remind_time in", values, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeNotIn(List<Date> values) {
            addCriterion("note_remind_time not in", values, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeBetween(Date value1, Date value2) {
            addCriterion("note_remind_time between", value1, value2, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteRemindTimeNotBetween(Date value1, Date value2) {
            addCriterion("note_remind_time not between", value1, value2, "noteRemindTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorIsNull() {
            addCriterion("note_creator is null");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorIsNotNull() {
            addCriterion("note_creator is not null");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorEqualTo(String value) {
            addCriterion("note_creator =", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorNotEqualTo(String value) {
            addCriterion("note_creator <>", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorGreaterThan(String value) {
            addCriterion("note_creator >", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorGreaterThanOrEqualTo(String value) {
            addCriterion("note_creator >=", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorLessThan(String value) {
            addCriterion("note_creator <", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorLessThanOrEqualTo(String value) {
            addCriterion("note_creator <=", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorLike(String value) {
            addCriterion("note_creator like", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorNotLike(String value) {
            addCriterion("note_creator not like", value, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorIn(List<String> values) {
            addCriterion("note_creator in", values, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorNotIn(List<String> values) {
            addCriterion("note_creator not in", values, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorBetween(String value1, String value2) {
            addCriterion("note_creator between", value1, value2, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorNotBetween(String value1, String value2) {
            addCriterion("note_creator not between", value1, value2, "noteCreator");
            return (Criteria) this;
        }

        public Criteria andNoteEditorIsNull() {
            addCriterion("note_editor is null");
            return (Criteria) this;
        }

        public Criteria andNoteEditorIsNotNull() {
            addCriterion("note_editor is not null");
            return (Criteria) this;
        }

        public Criteria andNoteEditorEqualTo(String value) {
            addCriterion("note_editor =", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorNotEqualTo(String value) {
            addCriterion("note_editor <>", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorGreaterThan(String value) {
            addCriterion("note_editor >", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorGreaterThanOrEqualTo(String value) {
            addCriterion("note_editor >=", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorLessThan(String value) {
            addCriterion("note_editor <", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorLessThanOrEqualTo(String value) {
            addCriterion("note_editor <=", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorLike(String value) {
            addCriterion("note_editor like", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorNotLike(String value) {
            addCriterion("note_editor not like", value, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorIn(List<String> values) {
            addCriterion("note_editor in", values, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorNotIn(List<String> values) {
            addCriterion("note_editor not in", values, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorBetween(String value1, String value2) {
            addCriterion("note_editor between", value1, value2, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteEditorNotBetween(String value1, String value2) {
            addCriterion("note_editor not between", value1, value2, "noteEditor");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeIsNull() {
            addCriterion("note_creator_time is null");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeIsNotNull() {
            addCriterion("note_creator_time is not null");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeEqualTo(Date value) {
            addCriterion("note_creator_time =", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeNotEqualTo(Date value) {
            addCriterion("note_creator_time <>", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeGreaterThan(Date value) {
            addCriterion("note_creator_time >", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("note_creator_time >=", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeLessThan(Date value) {
            addCriterion("note_creator_time <", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeLessThanOrEqualTo(Date value) {
            addCriterion("note_creator_time <=", value, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeIn(List<Date> values) {
            addCriterion("note_creator_time in", values, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeNotIn(List<Date> values) {
            addCriterion("note_creator_time not in", values, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeBetween(Date value1, Date value2) {
            addCriterion("note_creator_time between", value1, value2, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteCreatorTimeNotBetween(Date value1, Date value2) {
            addCriterion("note_creator_time not between", value1, value2, "noteCreatorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeIsNull() {
            addCriterion("note_editor_time is null");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeIsNotNull() {
            addCriterion("note_editor_time is not null");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeEqualTo(Date value) {
            addCriterion("note_editor_time =", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeNotEqualTo(Date value) {
            addCriterion("note_editor_time <>", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeGreaterThan(Date value) {
            addCriterion("note_editor_time >", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("note_editor_time >=", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeLessThan(Date value) {
            addCriterion("note_editor_time <", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeLessThanOrEqualTo(Date value) {
            addCriterion("note_editor_time <=", value, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeIn(List<Date> values) {
            addCriterion("note_editor_time in", values, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeNotIn(List<Date> values) {
            addCriterion("note_editor_time not in", values, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeBetween(Date value1, Date value2) {
            addCriterion("note_editor_time between", value1, value2, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteEditorTimeNotBetween(Date value1, Date value2) {
            addCriterion("note_editor_time not between", value1, value2, "noteEditorTime");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoIsNull() {
            addCriterion("note_userno is null");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoIsNotNull() {
            addCriterion("note_userno is not null");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoEqualTo(String value) {
            addCriterion("note_userno =", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoNotEqualTo(String value) {
            addCriterion("note_userno <>", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoGreaterThan(String value) {
            addCriterion("note_userno >", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoGreaterThanOrEqualTo(String value) {
            addCriterion("note_userno >=", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoLessThan(String value) {
            addCriterion("note_userno <", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoLessThanOrEqualTo(String value) {
            addCriterion("note_userno <=", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoLike(String value) {
            addCriterion("note_userno like", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoNotLike(String value) {
            addCriterion("note_userno not like", value, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoIn(List<String> values) {
            addCriterion("note_userno in", values, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoNotIn(List<String> values) {
            addCriterion("note_userno not in", values, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoBetween(String value1, String value2) {
            addCriterion("note_userno between", value1, value2, "noteUserno");
            return (Criteria) this;
        }

        public Criteria andNoteUsernoNotBetween(String value1, String value2) {
            addCriterion("note_userno not between", value1, value2, "noteUserno");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}